import request from '@/utils/request'

// 查询服务区域列表
export function listServiceAreas(query) {
  return request({
    url: '/system/ServiceAreas/list',
    method: 'get',
    params: query
  })
}

// 查询服务区域详细
export function getServiceAreas(areaId) {
  return request({
    url: '/system/ServiceAreas/' + areaId,
    method: 'get'
  })
}

// 新增服务区域
export function addServiceAreas(data) {
  return request({
    url: '/system/ServiceAreas',
    method: 'post',
    data: data
  })
}

// 修改服务区域
export function updateServiceAreas(data) {
  return request({
    url: '/system/ServiceAreas',
    method: 'put',
    data: data
  })
}

// 删除服务区域
export function delServiceAreas(areaId) {
  return request({
    url: '/system/ServiceAreas/' + areaId,
    method: 'delete'
  })
}
